package com.kotlin.flong.reflection

/**
 * @Author:liangjl
 * @Date: 2020/7/12-8:01
 * @Eamil:jilongliang@sina.com
 * @Description:
 */

class MyTest6(value: Int) {
    constructor(amount: Int, color: String) : this(amount) {
        println("secondary constructor")
    }

    constructor(amount: Int, full: Boolean) : this(amount) {
        println("secondary constructor")
    }

    fun printSomeThing() {
        println("printSomeThing")
    }
}

fun main() {
    var myTest6 = MyTest6::class
    var constructors = myTest6.constructors

    println(constructors)

}